package cn.edu.sasu.mapper;



import cn.edu.sasu.domain.entity.SysHospital;
import cn.edu.sasu.domain.entity.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface SysHospitalMapper {
    Integer countHospitals(Integer deleteFlagYes);

    List<SysHospital> hospitalList(@Param("deleteFlag") Integer deleteFlag, @Param("offset") Integer offset, @Param("rows") Integer rows);

    List<SysHospital> getAllhospital(@Param("deleteFlag")Integer deleteFlag);

    void updateSysHospitalDeleteFlagByUserId(@Param("hospitalId") Integer hospitalId,@Param("deleteFlagYes")  Integer deleteFlagYes);

    void updateSysHospitalDeleteFlagByUserIds(@Param("ids") List<Integer> ids,@Param("deleteFlagYes") Integer deleteFlagYes);

    List<SysHospital> searchSysHospitalList(@Param("deleteFlagYes")Integer deleteFlagYes, @Param("offset")Integer offset,@Param("rows") Integer rows,@Param("hospitalName") String hospitalName);

    Integer countSearchSysHospital(@Param("deleteFlagYes") Integer deleteFlagYes,@Param("hospitalName") String hospitalName);

    SysUser findSysHospitalByHospitalName(@Param("hospitalName") String hospitalName);

    void save(SysHospital sysHospital);

    void update(SysHospital sysHospital);

    List<SysHospital> getAllhospitalById(@Param("deleteFlagYes") Integer deleteFlagYes,@Param("hospitalId") Integer hospitalId);
}




